package com.jyk.blog.po;

public class Blog {
    private int nid;
    private String title;
    private String subtitle;
    private String content;
    private String public_time;
    private int user_id;
    private int type_id;

    public Blog() {
    }

    public Blog(String title, String subtitle, String content, String public_time, int user_id, int type_id) {
        this.title = title;
        this.subtitle = subtitle;
        this.content = content;
        this.public_time = public_time;
        this.user_id = user_id;
        this.type_id = type_id;
    }

    public int getNid() {
        return nid;
    }

    public void setNid(int nid) {
        this.nid = nid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublic_time() {
        return public_time;
    }

    public void setPublic_time(String public_time) {
        this.public_time = public_time;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "nid=" + nid +
                ", title='" + title + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", content='" + content + '\'' +
                ", public_time='" + public_time + '\'' +
                ", user_id=" + user_id +
                ", type_id=" + type_id +
                '}';
    }
}
